<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/3/11 0011
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="/js/vue.js"></script>
    <script src="/axios/axios.min.js"></script>
</head>
<body>
        <div id="app">
            <button @click="get">axios的get请求</button>
            {{}}
        </div>


<script>
    let app=new Vue({
        el:"#app",
        data:{
            
        },
        methods:{
            get(){
               axios.get("user/id?id=7").then(result=>{
                   console.log(result.data)
               })
            }
        }
    })
</script>
</body>
</html>
